<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="author" content="esy">
    
    <meta name="description" content="esy">
    
    
    
    
    
    
    <title>python——滑动切片之数组 | ESY</title>
    <link href="https://esyyes.github.io" rel="prefetch" />

    
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/aos.css">
<link rel="stylesheet" href="/css/style.css">

    
<script src="/js/jquery.min.js"></script>

    
<script src="/js/bootstrap.min.js"></script>

    
<script src="/js/aos.js"></script>

    
<script src="/js/highslide/highslide-full.min.js"></script>

    
<link rel="stylesheet" href="/js/highslide/highslide.css">

    <style type="text/css">
        @media (max-width: 768px) {
            body {
                background-color: #f0f0f0;
                background: url('/imgs/xsbg.gif');
                background-attachment: fixed;
            }
        }
    </style>
    
    <!--<script type="text/javascript">
      if (document.images) {
        var avatar = new Image();
        avatar.src = '/imgs/avatar.jpg'
        var previews = 'preview1.jpg,preview2.jpg,preview3.jpg,preview4.jpg'.split(',')
        var previewsPreLoad = []
        for(var i = 0; i < length; i++) {
          previewsPreLoad.push(new Image())
          previewsPreLoad[previewsPreLoad.length - 1].src = '/imgs/preview' + previews[i]
        }
      }
    </script>-->
<meta name="generator" content="Hexo 5.2.0"></head>
<body>
    <!-- 背景轮播图功能 -->
    <section class="hidden-xs">
    <ul class="cb-slideshow">
        <li><span>天若</span></li>
        <li><span>有情</span></li>
        <li><span>天亦老</span></li>
        <li><span>我为</span></li>
        <li><span>长者</span></li>
        <li><span>续一秒</span></li>
    </ul>
</section>
    <!-- 欧尼酱功能, 谁用谁知道 -->
    
    <div class="gal-menu gal-dropdown">
    <div class="circle" id="gal">
        <div class="ring">
            <a href="https://esyyes.github.io" class="menuItem" style="left: 50%; top: 15%;">首页</a>
            
            <a class="menuItem" style="left: 80.3109%; top: 32.5%;">下一页</a>
            
            <a href="/archives" class="menuItem" style="left: 80.3109%; top: 67.5%;">归档</a>
            <a href="/about" class="menuItem" style="left: 50%; top: 85%;">关于</a>
            <a href="/message" class="menuItem" style="left: 19.6891%; top: 67.5%;">留言板</a>

            
            <a class="menuItem" style="left: 19.6891%; top: 32.5%;">上一页</a>
            
        </div>
        <audio id="audio" src="/imgs/oni.mp3"></audio>
    </div>
</div>
    
    <header class="navbar navbar-inverse" id="gal-header">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed"
                    data-toggle="collapse" data-target=".bs-navbar-collapse"
                    aria-expanded="false">
                <span class="fa fa-lg fa-reorder"></span>
            </button>
            <a href="https://esyyes.github.io">
                
                <style>
                    #gal-header .navbar-brand {
                        height: 54px;
                        line-height: 24px;
                        font-size: 28px;
                        opacity: 1;
                        background-color: rgba(0,0,0,0);
                        text-shadow: 0 0 5px #fff,0 0 10px #fff,0 0 15px #fff,0 0 20px #228DFF,0 0 35px #228DFF,0 0 40px #228DFF,0 0 50px #228DFF,0 0 75px #228DFF;
                    }
                </style>
                <!-- 这里使用文字(navbar_text or config.title) -->
                <div class="navbar-brand">ESY</div>
                
            </a>
        </div>
        <div class="collapse navbar-collapse bs-navbar-collapse">
            <ul class="nav navbar-nav" id="menu-gal">
                
                
                <li class="">
                    <a href="/">
                        <i class="fa fa-home"></i>首页
                    </a>
                </li>
                
                
                
                <li class="">
                    <a href="/archives">
                        <i class="fa fa-archive"></i>归档
                    </a>
                </li>
                
                
                
                
                <li class="dropdown">
                    <!-- TODO 添加hover dropdown效果 -->
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false" data-hover="dropdown">
                        <i class="fa fa-list"></i>分类
                    </a>
                    <ul class="dropdown-menu">
                        
                        
                        <li>
                            <a href="/categories/py-study/">py_study</a>
                        </li>
                        
                        <li>
                            <a href="/categories/nlp/">nlp</a>
                        </li>
                        
                        <li>
                            <a href="/categories/Graduation-work/">Graduation work</a>
                        </li>
                        
                        <li>
                            <a href="/categories/work/">work</a>
                        </li>
                        
                        <li>
                            <a href="/categories/hexo/">hexo</a>
                        </li>
                        
                        <li>
                            <a href="/categories/hexo%E5%AE%8C%E5%96%84/">-hexo完善</a>
                        </li>
                        
                        
                        <li>
                            <a href="/categories">...</a>
                        </li>
                        
                        
                    </ul>
                </li>
                
                
                
                
                
                <li class="dropdown">
                    <!-- TODO 添加hover dropdown效果 -->
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false" data-hover="dropdown">
                        <i class="fa fa-tags"></i>标签
                    </a>
                    <ul class="dropdown-menu">
                        
                        
                        <li>
                            <a href="/tags/py-study/">py_study</a>
                        </li>
                        
                        <li>
                            <a href="/tags/nlp/">nlp</a>
                        </li>
                        
                        <li>
                            <a href="/tags/Graduation-work/">Graduation work</a>
                        </li>
                        
                        <li>
                            <a href="/tags/work/">work</a>
                        </li>
                        
                        <li>
                            <a href="/tags/hexo/">hexo</a>
                        </li>
                        
                        <li>
                            <a href="/tags/%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/">-个人博客搭建</a>
                        </li>
                        
                        
                        <li>
                            <a href="/tags">...</a>
                        </li>
                        
                        
                    </ul>
                </li>
                
                
                
                
                <li class="">
                    <a href="/about">
                        <i class="fa fa-user"></i>关于我
                    </a>
                </li>
                
                
            </ul>
        </div>
    </div>
</header>
    <div id="gal-body">
        <div class="container">
            <div class="row">
                <div class="col-md-8 gal-right" id="mainstay">
                    
<article class="article well article-body" id="article">
    <div class="breadcrumb">
        <i class="fa fa-home"></i>
        <a href="https://esyyes.github.io">ESY</a>
        >
        <span>python——滑动切片之数组</span>
    </div>
    <!-- 大型设备详细文章 -->
    <div class="hidden-xs">
        <div class="title-article">
            <h1>
                <a href="/2020/02/08/python%20work/python%E2%80%94%E2%80%94%E6%BB%91%E5%8A%A8%E5%88%87%E7%89%87%E4%B9%8B%E6%95%B0%E7%BB%84/">python——滑动切片之数组</a>
            </h1>
        </div>
        <div class="tag-article">
            
            <span class="label label-gal">
                <i class="fa fa-calendar"></i> 2020-02-08
            </span>
            
        </div>
    </div>
    <!-- 小型设备详细文章 -->
    <div class="visible-xs">
        <center>
            <div class="title-article">
                <h4>
                    <a href="/2020/02/08/python%20work/python%E2%80%94%E2%80%94%E6%BB%91%E5%8A%A8%E5%88%87%E7%89%87%E4%B9%8B%E6%95%B0%E7%BB%84/">python——滑动切片之数组</a>
                </h4>
            </div>
            <p>
                <i class="fa fa-calendar"></i> 2020-02-08
            </p>
            <p>
                
                
            </p>
        </center>
    </div>
    <div class="content-article">
        <table>
<thead>
<tr>
<th align="left">属性</th>
<th align="left">说明</th>
</tr>
</thead>
<tbody><tr>
<td align="left">ndarray.ndim</td>
<td align="left">秩，即轴的数量或维度的数量</td>
</tr>
<tr>
<td align="left">ndarray.shape</td>
<td align="left">数组的维度，对于矩阵，n 行 m 列</td>
</tr>
<tr>
<td align="left">ndarray.size</td>
<td align="left">数组元素的总个数，相当于 .shape 中 n*m 的值</td>
</tr>
<tr>
<td align="left">ndarray.dtype</td>
<td align="left">ndarray 对象的元素类型</td>
</tr>
<tr>
<td align="left">ndarray.itemsize</td>
<td align="left">ndarray 对象中每个元素的大小，以字节为单位</td>
</tr>
<tr>
<td align="left">ndarray.flags</td>
<td align="left">ndarray 对象的内存信息</td>
</tr>
<tr>
<td align="left">ndarray.real</td>
<td align="left">ndarray元素的实部</td>
</tr>
<tr>
<td align="left">ndarray.imag</td>
<td align="left">ndarray 元素的虚部</td>
</tr>
<tr>
<td align="left">ndarray.data</td>
<td align="left">包含实际数组元素的缓冲区，由于一般通过数组的索引获取元素，所以通常不需要使用这个属性。</td>
</tr>
</tbody></table>
<p>数组的切片：</p>
<p>ndarray对象的内容可以通过索引或切片来访问和修改，与 Python 中 list 的切片操作一样。</p>
<p>ndarray 数组可以基于 0 - n 的下标进行索引，切片对象可以通过内置的 slice 函数，并设置 start, stop 及 step 参数进行，从原数组中切割出一个新数组。</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> numpy <span class="keyword">as</span> np</span><br><span class="line"> </span><br><span class="line">a = np.arange(<span class="number">10</span>)  </span><br><span class="line">b = a[<span class="number">2</span>:<span class="number">7</span>:<span class="number">2</span>]   <span class="comment"># 从索引 2 开始到索引 7 停止，间隔为 2</span></span><br><span class="line">print(b)</span><br></pre></td></tr></table></figure>

<p>数组的详细介绍</p>
<p><a target="_blank" rel="noopener" href="https://www.runoob.com/numpy/numpy-ndexing-and-slicing.html">https://www.runoob.com/numpy/numpy-ndexing-and-slicing.html</a></p>
<p><img src="H:\myboke\mybike\source\images\image-20200208142758066.png" alt="image-20200208142758066"></p>
<p>还是需要用到循环结果</p>
<p>进行30s切片，并得到RR系列：</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">i = <span class="number">0</span></span><br><span class="line">locs_30s = []</span><br><span class="line">RR = []</span><br><span class="line"><span class="keyword">while</span> locs[i] &lt; <span class="number">7500</span>:</span><br><span class="line">    locs_30s.append(locs[i])</span><br><span class="line">    RR.append(locs[i+<span class="number">1</span>] - locs[i])</span><br><span class="line">    i += <span class="number">1</span></span><br><span class="line">RR.pop()</span><br><span class="line">print(RR)</span><br><span class="line">[<span class="number">215</span>, <span class="number">223</span>, <span class="number">230</span>, <span class="number">224</span>, <span class="number">226</span>, <span class="number">223</span>, <span class="number">221</span>, <span class="number">227</span>, <span class="number">221</span>, <span class="number">215</span>, <span class="number">216</span>, <span class="number">213</span>, <span class="number">217</span>, <span class="number">227</span>, <span class="number">237</span>, <span class="number">245</span>, <span class="number">242</span>, <span class="number">239</span>, <span class="number">247</span>, <span class="number">249</span>, <span class="number">246</span>, <span class="number">239</span>, <span class="number">231</span>, <span class="number">234</span>, <span class="number">235</span>, <span class="number">237</span>, <span class="number">236</span>, <span class="number">226</span>, <span class="number">222</span>, <span class="number">224</span>, <span class="number">228</span>, <span class="number">226</span>]</span><br></pre></td></tr></table></figure>

<p>循环切片先不管RR系列</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 考虑它的片段个数240</span></span><br><span class="line"><span class="comment"># 先考虑ECG片段的分段，分为240个30s的数据，毕竟这个为等距离的，列表里面放列表</span></span><br><span class="line"><span class="comment"># 建立一个空元组</span></span><br><span class="line">tuple1 = []</span><br><span class="line">i = <span class="number">0</span></span><br><span class="line"><span class="keyword">while</span> i &lt; (ECG_LEN / <span class="number">250</span> / <span class="number">30</span>) - <span class="number">1</span>:</span><br><span class="line">    j = <span class="number">0</span></span><br><span class="line">    locs_30s = []</span><br><span class="line"><span class="comment">#     RR = []</span></span><br><span class="line">    <span class="keyword">while</span> locs[j] &lt; <span class="number">7500</span> * (i + <span class="number">1</span>):</span><br><span class="line">        <span class="keyword">if</span> locs[j] &gt;= <span class="number">7500</span> * i:</span><br><span class="line">            locs_30s.append(locs[j])</span><br><span class="line"><span class="comment">#             C = locs[j+1] - locs[j]</span></span><br><span class="line"><span class="comment">#             RR.append(C) </span></span><br><span class="line">        j+=<span class="number">1</span></span><br><span class="line">    print(locs_30s)</span><br><span class="line">    tuple1.append(locs_30s)</span><br><span class="line">    i += <span class="number">1</span></span><br><span class="line">print(i)</span><br><span class="line">print(tuple1)</span><br><span class="line">[<span class="number">19</span>, <span class="number">234</span>, <span class="number">457</span>, <span class="number">687</span>, <span class="number">911</span>, <span class="number">1137</span>, <span class="number">1360</span>, <span class="number">1581</span>, <span class="number">1808</span>, <span class="number">2029</span>, <span class="number">2244</span>, <span class="number">2460</span>, <span class="number">2673</span>, <span class="number">2890</span>, <span class="number">3117</span>, <span class="number">3354</span>, <span class="number">3599</span>, <span class="number">3841</span>, <span class="number">4080</span>, <span class="number">4327</span>, <span class="number">4576</span>, <span class="number">4822</span>, <span class="number">5061</span>, <span class="number">5292</span>, <span class="number">5526</span>, <span class="number">5761</span>, <span class="number">5998</span>, <span class="number">6234</span>, <span class="number">6460</span>, <span class="number">6682</span>, <span class="number">6906</span>, <span class="number">7134</span>, <span class="number">7360</span>]</span><br><span class="line">[<span class="number">7578</span>, <span class="number">7787</span>, <span class="number">7993</span>, <span class="number">8202</span>, <span class="number">8418</span>, <span class="number">8643</span>, <span class="number">8874</span>, <span class="number">9104</span>, <span class="number">9352</span>, <span class="number">9606</span>, <span class="number">9857</span>, <span class="number">10106</span>, <span class="number">10343</span>, <span class="number">10577</span>, <span class="number">10808</span>, <span class="number">11038</span>, <span class="number">11268</span>, <span class="number">11490</span>, <span class="number">11710</span>, <span class="number">11933</span>, <span class="number">12165</span>, <span class="number">12407</span>, <span class="number">12647</span>, <span class="number">12873</span>, <span class="number">13093</span>, <span class="number">13306</span>, <span class="number">13520</span>, <span class="number">13736</span>, <span class="number">13954</span>, <span class="number">14176</span>, <span class="number">14414</span>, <span class="number">14664</span>, <span class="number">14912</span>]</span><br><span class="line">[<span class="number">15159</span>, <span class="number">15400</span>, <span class="number">15634</span>, <span class="number">15875</span>, <span class="number">16114</span>, <span class="number">16352</span>, <span class="number">16583</span>, <span class="number">16809</span>, <span class="number">17038</span>, <span class="number">17266</span>, <span class="number">17497</span>, <span class="number">17728</span>, <span class="number">17946</span>, <span class="number">18159</span>, <span class="number">18368</span>, <span class="number">18575</span>, <span class="number">18787</span>, <span class="number">19007</span>, <span class="number">19230</span>, <span class="number">19455</span>, <span class="number">19691</span>, <span class="number">19934</span>, <span class="number">20178</span>, <span class="number">20416</span>, <span class="number">20654</span>, <span class="number">20898</span>, <span class="number">21143</span>, <span class="number">21387</span>, <span class="number">21619</span>, <span class="number">21845</span>, <span class="number">22071</span>, <span class="number">22301</span>]</span><br><span class="line">[<span class="number">22532</span>, <span class="number">22757</span>, <span class="number">22968</span>, <span class="number">23180</span>, <span class="number">23393</span>, <span class="number">23612</span>, <span class="number">23842</span>, <span class="number">24077</span>, <span class="number">24325</span>, <span class="number">24582</span>, <span class="number">24846</span>, <span class="number">25109</span>, <span class="number">25362</span>, <span class="number">25608</span>, <span class="number">25856</span>, <span class="number">26106</span>, <span class="number">26356</span>, <span class="number">26598</span>, <span class="number">26830</span>, <span class="number">27055</span>, <span class="number">27280</span>, <span class="number">27498</span>, <span class="number">27710</span>, <span class="number">27921</span>, <span class="number">28133</span>, <span class="number">28352</span>, <span class="number">28585</span>, <span class="number">28819</span>, <span class="number">29057</span>, <span class="number">29306</span>, <span class="number">29554</span>, <span class="number">29798</span>]</span><br><span class="line">[<span class="number">30054</span>, <span class="number">30314</span>, <span class="number">30573</span>, <span class="number">30824</span>, <span class="number">31070</span>, <span class="number">31313</span>, <span class="number">31555</span>, <span class="number">31793</span>, <span class="number">32029</span>, <span class="number">32258</span>, <span class="number">32490</span>, <span class="number">32727</span>, <span class="number">32961</span>, <span class="number">33195</span>, <span class="number">33425</span>, <span class="number">33652</span>, <span class="number">33880</span>, <span class="number">34110</span>, <span class="number">34337</span>, <span class="number">34562</span>, <span class="number">34782</span>, <span class="number">35007</span>, <span class="number">35236</span>, <span class="number">35473</span>, <span class="number">35710</span>, <span class="number">35943</span>, <span class="number">36174</span>, <span class="number">36409</span>, <span class="number">36653</span>, <span class="number">36899</span>, <span class="number">37138</span>, <span class="number">37369</span>]</span><br></pre></td></tr></table></figure>

<p>得到一个大的列表，里面包含很多个小的列表，</p>
<p>*<em>while i &lt; (ECG_LEN / 250 / 30) - 1:**在编写时，一定要考虑i的区间范围，要不然会超出范围，导致程序出错，虽然有结果，但是无法正常运行，在进行时通过计算-1可得到完整的数据，毕竟后面有个 **while locs[j] &lt; 7500 * (i + 1):*</em></p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br></pre></td><td class="code"><pre><span class="line">list_RR = []</span><br><span class="line">i = <span class="number">0</span></span><br><span class="line"><span class="keyword">while</span> i &lt; (ECG_LEN / <span class="number">250</span> / <span class="number">30</span>) - <span class="number">1</span>:</span><br><span class="line">    j = <span class="number">0</span></span><br><span class="line">    locs_30s = []</span><br><span class="line">    RR = []</span><br><span class="line">    <span class="keyword">while</span> locs[j] &lt; <span class="number">7500</span> * (i + <span class="number">1</span>):</span><br><span class="line">        <span class="keyword">if</span> locs[j] &gt;= <span class="number">7500</span> * i:</span><br><span class="line">            locs_30s.append(locs[j])</span><br><span class="line">            C = locs[j+<span class="number">1</span>] - locs[j]</span><br><span class="line">            RR.append(C) </span><br><span class="line">        j+=<span class="number">1</span></span><br><span class="line">    print(RR)</span><br><span class="line">    list_RR.append(RR)</span><br><span class="line">    i += <span class="number">1</span></span><br><span class="line">print(i)</span><br><span class="line">print(list_RR)</span><br><span class="line">[<span class="number">215</span>, <span class="number">223</span>, <span class="number">230</span>, <span class="number">224</span>, <span class="number">226</span>, <span class="number">223</span>, <span class="number">221</span>, <span class="number">227</span>, <span class="number">221</span>, <span class="number">215</span>, <span class="number">216</span>, <span class="number">213</span>, <span class="number">217</span>, <span class="number">227</span>, <span class="number">237</span>, <span class="number">245</span>, <span class="number">242</span>, <span class="number">239</span>, <span class="number">247</span>, <span class="number">249</span>, <span class="number">246</span>, <span class="number">239</span>, <span class="number">231</span>, <span class="number">234</span>, <span class="number">235</span>, <span class="number">237</span>, <span class="number">236</span>, <span class="number">226</span>, <span class="number">222</span>, <span class="number">224</span>, <span class="number">228</span>, <span class="number">226</span>, <span class="number">218</span>]</span><br><span class="line">[<span class="number">209</span>, <span class="number">206</span>, <span class="number">209</span>, <span class="number">216</span>, <span class="number">225</span>, <span class="number">231</span>, <span class="number">230</span>, <span class="number">248</span>, <span class="number">254</span>, <span class="number">251</span>, <span class="number">249</span>, <span class="number">237</span>, <span class="number">234</span>, <span class="number">231</span>, <span class="number">230</span>, <span class="number">230</span>, <span class="number">222</span>, <span class="number">220</span>, <span class="number">223</span>, <span class="number">232</span>, <span class="number">242</span>, <span class="number">240</span>, <span class="number">226</span>, <span class="number">220</span>, <span class="number">213</span>, <span class="number">214</span>, <span class="number">216</span>, <span class="number">218</span>, <span class="number">222</span>, <span class="number">238</span>, <span class="number">250</span>, <span class="number">248</span>, <span class="number">247</span>]</span><br><span class="line">[<span class="number">241</span>, <span class="number">234</span>, <span class="number">241</span>, <span class="number">239</span>, <span class="number">238</span>, <span class="number">231</span>, <span class="number">226</span>, <span class="number">229</span>, <span class="number">228</span>, <span class="number">231</span>, <span class="number">231</span>, <span class="number">218</span>, <span class="number">213</span>, <span class="number">209</span>, <span class="number">207</span>, <span class="number">212</span>, <span class="number">220</span>, <span class="number">223</span>, <span class="number">225</span>, <span class="number">236</span>, <span class="number">243</span>, <span class="number">244</span>, <span class="number">238</span>, <span class="number">238</span>, <span class="number">244</span>, <span class="number">245</span>, <span class="number">244</span>, <span class="number">232</span>, <span class="number">226</span>, <span class="number">226</span>, <span class="number">230</span>, <span class="number">231</span>]</span><br><span class="line">[<span class="number">225</span>, <span class="number">211</span>, <span class="number">212</span>, <span class="number">213</span>, <span class="number">219</span>, <span class="number">230</span>, <span class="number">235</span>, <span class="number">248</span>, <span class="number">257</span>, <span class="number">264</span>, <span class="number">263</span>, <span class="number">253</span>, <span class="number">246</span>, <span class="number">248</span>, <span class="number">250</span>, <span class="number">250</span>, <span class="number">242</span>, <span class="number">232</span>, <span class="number">225</span>, <span class="number">225</span>, <span class="number">218</span>, <span class="number">212</span>, <span class="number">211</span>, <span class="number">212</span>, <span class="number">219</span>, <span class="number">233</span>, <span class="number">234</span>, <span class="number">238</span>, <span class="number">249</span>, <span class="number">248</span>, <span class="number">244</span>, <span class="number">256</span>]</span><br></pre></td></tr></table></figure>

<p>得到以5分钟为片段的30s滑窗的矩阵</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">list_RR = []</span><br><span class="line">i = <span class="number">0</span></span><br><span class="line"><span class="keyword">while</span> i &lt; (ECG_LEN / <span class="number">250</span> / <span class="number">30</span>) - <span class="number">11</span>:</span><br><span class="line">    j = <span class="number">0</span></span><br><span class="line">    locs_300s = []</span><br><span class="line">    RR = []</span><br><span class="line">    <span class="keyword">while</span> locs[j] &lt; <span class="number">75000</span> + <span class="number">7500</span> * i:</span><br><span class="line">        <span class="keyword">if</span> locs[j] &gt;= <span class="number">7500</span> * i:</span><br><span class="line">            locs_30s.append(locs[j])</span><br><span class="line">            C = locs[j+<span class="number">1</span>] - locs[j]</span><br><span class="line">            RR.append(C) </span><br><span class="line">        j+=<span class="number">1</span></span><br><span class="line">    RR.pop() <span class="comment"># 删除列表的最后一个，毕竟将数据多加了一个1，进行了运算</span></span><br><span class="line">    print(RR)</span><br><span class="line">    list_RR.append(RR) <span class="comment"># 将每个运行的列表叠加在一个列表上，构成一个大的列表</span></span><br><span class="line">    i += <span class="number">1</span></span><br><span class="line">print(list_RR)</span><br><span class="line">[<span class="number">215</span>, <span class="number">223</span>, <span class="number">230</span>, <span class="number">224</span>, <span class="number">226</span>, <span class="number">223</span>, <span class="number">221</span>, <span class="number">227</span>, <span class="number">221</span>, <span class="number">215</span>, <span class="number">216</span>, <span class="number">213</span>, <span class="number">217</span>, <span class="number">227</span>, <span class="number">237</span>, <span class="number">245</span>, <span class="number">242</span>, <span class="number">239</span>, <span class="number">247</span>, <span class="number">249</span>, <span class="number">246</span>, <span class="number">239</span>, <span class="number">231</span>, <span class="number">234</span>, <span class="number">235</span>, <span class="number">237</span>, <span class="number">236</span>, <span class="number">226</span>, <span class="number">222</span>, <span class="number">224</span>, <span class="number">228</span>, <span class="number">226</span>, <span class="number">218</span>, <span class="number">209</span>, <span class="number">206</span>, <span class="number">209</span>, <span class="number">216</span>, <span class="number">225</span>, <span class="number">231</span>, <span class="number">230</span>, <span class="number">248</span>, <span class="number">254</span>, <span class="number">251</span>, <span class="number">249</span>, <span class="number">237</span>, <span class="number">234</span>, <span class="number">231</span>, <span class="number">230</span>, <span class="number">230</span>, <span class="number">222</span>, <span class="number">220</span>, <span class="number">223</span>, <span class="number">232</span>, <span class="number">242</span>, <span class="number">240</span>, <span class="number">226</span>, <span class="number">220</span>, <span class="number">213</span>, <span class="number">214</span>, <span class="number">216</span>, <span class="number">218</span>, <span class="number">222</span>, <span class="number">238</span>, <span class="number">250</span>, <span class="number">248</span>, <span class="number">247</span>, <span class="number">241</span>, <span class="number">234</span>, <span class="number">241</span>, <span class="number">239</span>, <span class="number">238</span>, <span class="number">231</span>, <span class="number">226</span>, <span class="number">229</span>, <span class="number">228</span>, <span class="number">231</span>, <span class="number">231</span>, <span class="number">218</span>, <span class="number">213</span>, <span class="number">209</span>, <span class="number">207</span>, <span class="number">212</span>, <span class="number">220</span>, <span class="number">223</span>, <span class="number">225</span>, <span class="number">236</span>, <span class="number">243</span>, <span class="number">244</span>, <span class="number">238</span>, <span class="number">238</span>, <span class="number">244</span>, <span class="number">245</span>, <span class="number">244</span>, <span class="number">232</span>, <span class="number">226</span>, <span class="number">226</span>, <span class="number">230</span>, <span class="number">231</span>, <span class="number">225</span>, <span class="number">211</span>, <span class="number">212</span>, <span class="number">213</span>, <span class="number">219</span>, <span class="number">230</span>, <span class="number">235</span>, <span class="number">248</span>, <span class="number">257</span>, <span class="number">264</span>, <span class="number">263</span>, <span class="number">253</span>, <span class="number">246</span>, <span class="number">248</span>, <span class="number">250</span>, <span class="number">250</span>, <span class="number">242</span>, <span class="number">232</span>, <span class="number">225</span>, <span class="number">225</span>, <span class="number">218</span>, <span class="number">212</span>, <span class="number">211</span>, <span class="number">212</span>, <span class="number">219</span>, <span class="number">233</span>, <span class="number">234</span>, <span class="number">238</span>, <span class="number">249</span>, <span class="number">248</span>, <span class="number">244</span>, <span class="number">256</span>, <span class="number">260</span>, <span class="number">259</span>, <span class="number">251</span>, <span class="number">246</span>, <span class="number">243</span>, <span class="number">242</span>, <span class="number">238</span>, <span class="number">236</span>, <span class="number">229</span>, <span class="number">232</span>, <span class="number">237</span>, <span class="number">234</span>, <span class="number">234</span>, <span class="number">230</span>, <span class="number">227</span>, <span class="number">228</span>, <span class="number">230</span>, <span class="number">227</span>, <span class="number">225</span>, <span class="number">220</span>, <span class="number">225</span>, <span class="number">229</span>, <span class="number">237</span>, <span class="number">237</span>, <span class="number">233</span>, <span class="number">231</span>, <span class="number">235</span>, <span class="number">244</span>, <span class="number">246</span>, <span class="number">239</span>, <span class="number">231</span>, <span class="number">231</span>, <span class="number">229</span>, <span class="number">228</span>, <span class="number">226</span>, <span class="number">222</span>, <span class="number">226</span>, <span class="number">224</span>, <span class="number">214</span>, <span class="number">215</span>, <span class="number">212</span>, <span class="number">216</span>, <span class="number">223</span>, <span class="number">232</span>, <span class="number">236</span>, <span class="number">238</span>, <span class="number">232</span>, <span class="number">240</span>, <span class="number">244</span>, <span class="number">248</span>, <span class="number">239</span>, <span class="number">232</span>, <span class="number">231</span>, <span class="number">231</span>, <span class="number">232</span>, <span class="number">230</span>, <span class="number">227</span>, <span class="number">226</span>, <span class="number">235</span>, <span class="number">238</span>, <span class="number">238</span>, <span class="number">233</span>, <span class="number">227</span>, <span class="number">223</span>, <span class="number">214</span>, <span class="number">207</span>, <span class="number">202</span>, <span class="number">204</span>, <span class="number">210</span>, <span class="number">227</span>, <span class="number">245</span>, <span class="number">258</span>, <span class="number">254</span>, <span class="number">251</span>, <span class="number">255</span>, <span class="number">246</span>, <span class="number">248</span>, <span class="number">237</span>, <span class="number">227</span>, <span class="number">230</span>, <span class="number">227</span>, <span class="number">227</span>, <span class="number">230</span>, <span class="number">229</span>, <span class="number">232</span>, <span class="number">237</span>, <span class="number">239</span>, <span class="number">237</span>, <span class="number">230</span>, <span class="number">227</span>, <span class="number">235</span>, <span class="number">237</span>, <span class="number">234</span>, <span class="number">228</span>, <span class="number">230</span>, <span class="number">221</span>, <span class="number">222</span>, <span class="number">220</span>, <span class="number">221</span>, <span class="number">234</span>, <span class="number">244</span>, <span class="number">250</span>, <span class="number">247</span>, <span class="number">242</span>, <span class="number">247</span>, <span class="number">248</span>, <span class="number">247</span>, <span class="number">242</span>, <span class="number">231</span>, <span class="number">230</span>, <span class="number">232</span>, <span class="number">233</span>, <span class="number">233</span>, <span class="number">228</span>, <span class="number">227</span>, <span class="number">228</span>, <span class="number">229</span>, <span class="number">229</span>, <span class="number">217</span>, <span class="number">207</span>, <span class="number">207</span>, <span class="number">207</span>, <span class="number">213</span>, <span class="number">221</span>, <span class="number">227</span>, <span class="number">227</span>, <span class="number">228</span>, <span class="number">234</span>, <span class="number">238</span>, <span class="number">237</span>, <span class="number">230</span>, <span class="number">231</span>, <span class="number">234</span>, <span class="number">234</span>, <span class="number">232</span>, <span class="number">225</span>, <span class="number">222</span>, <span class="number">224</span>, <span class="number">229</span>, <span class="number">233</span>, <span class="number">225</span>, <span class="number">226</span>, <span class="number">228</span>, <span class="number">231</span>, <span class="number">234</span>, <span class="number">224</span>, <span class="number">217</span>, <span class="number">225</span>, <span class="number">231</span>, <span class="number">240</span>, <span class="number">246</span>, <span class="number">241</span>, <span class="number">240</span>, <span class="number">247</span>, <span class="number">254</span>, <span class="number">249</span>, <span class="number">234</span>, <span class="number">237</span>, <span class="number">236</span>, <span class="number">242</span>, <span class="number">241</span>, <span class="number">234</span>, <span class="number">227</span>, <span class="number">223</span>, <span class="number">214</span>, <span class="number">209</span>, <span class="number">208</span>, <span class="number">207</span>, <span class="number">210</span>, <span class="number">219</span>, <span class="number">227</span>, <span class="number">234</span>, <span class="number">235</span>, <span class="number">231</span>, <span class="number">238</span>, <span class="number">237</span>, <span class="number">238</span>, <span class="number">236</span>, <span class="number">231</span>, <span class="number">224</span>, <span class="number">226</span>, <span class="number">222</span>, <span class="number">214</span>, <span class="number">207</span>, <span class="number">206</span>, <span class="number">212</span>, <span class="number">220</span>, <span class="number">230</span>, <span class="number">233</span>, <span class="number">233</span>, <span class="number">236</span>, <span class="number">243</span>, <span class="number">246</span>, <span class="number">244</span>]</span><br></pre></td></tr></table></figure>

<p>两种情况都得到结果</p>
<p>下一步：得到RR序列，首先查看，那个库，然后进行时频域分析，我觉得还是要消除异常点，毕竟为了后面做准备，还可以将其作为一个时域特征。</p>
<p><img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1581244543642&di=eadb0d6f73d023fd1ad1f4944147a6be&imgtype=0&src=http://imgsrc.baidu.com/forum/w=580/sign=f77af06f942397ddd679980c6983b216/70e2ae2f070828388d72159cbd99a9014d08f15d.jpg"></p>

    </div>
</article>


                </div>
                <aside class="col-md-4 gal-left" id="sidebar">
    <!-- 此为sidebar的搜索框, 非搜索结果页面 -->
<aside id="sidebar-search">
    <div class="search hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <form class="form-inline clearfix" id="search-form" method="get"
              action="/search/index.html">
            <input type="text" name="s" class="form-control" id="searchInput" placeholder="搜索文章~" autocomplete="off">
            <button class="btn btn-danger btn-gal" type="submit">
                <i class="fa fa-search"></i>
            </button>
        </form>
    </div>
</aside>
    <aside id="sidebar-author">
    <div class="panel panel-gal" data-aos="flip-right" data-aos-duration="3000">
        <div class="panel-heading" style="text-align: center">
            <i class="fa fa-quote-left"></i>
            esy
            <i class="fa fa-quote-right"></i>
        </div>
        <div class="author-panel text-center">
            <img src="/imgs/avatar.jpg" width="140" height="140"
                 alt="个人头像" class="author-image">
            <p class="author-description"><p>esy</p>
</p>
        </div>
    </div>
</aside>
    
    <aside id="sidebar-recent_comments">
    <div class="panel panel-gal recent hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <div class="panel-heading">
            <i class="fa fa-comments"></i>
            最新评论
            <i class="fa fa-times-circle panel-remove"></i>
            <i class="fa fa-chevron-circle-up panel-toggle"></i>
        </div>
        <ul class="list-group list-group-flush"></ul>
    </div>
</aside>
    
    <!-- 要配置好leancloud才能开启此小工具 -->
    
    
    <aside id="sidebar-recent_posts">
    <div class="panel panel-gal recent hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <div class="panel-heading">
            <i class="fa fa-refresh"></i>
            近期文章
            <i class="fa fa-times-circle panel-remove"></i>
            <i class="fa fa-chevron-circle-up panel-toggle"></i>
        </div>
        <ul class="list-group list-group-flush">
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/11/05/python%20work/%E6%9C%80%E5%B0%8F%E4%BA%8C%E4%B9%98%E6%B3%95/">最小二乘法</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/11/05/python%20work/%E7%BB%9F%E8%AE%A1%E5%AD%A6%E4%B9%A0-%E7%AC%AC%E4%B8%80%E7%AB%A0/">统计学习--第一章</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/11/04/python%20work/hello-world/">Hello World</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/11/03/python%20work/%E5%88%86%E7%B1%BB%E6%A8%A1%E5%9E%8B%E7%9A%84%E8%AF%84%E4%BC%B0%E6%8C%87%E6%A0%87/">分类模型的评估指标</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/10/21/python%20work/10-21-%E7%88%AC%E8%99%AB%E5%9F%BA%E7%A1%80/">10-21 爬虫基础</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/09/25/python%20work/CRF%E7%9A%84%E6%95%B4%E4%BD%93%E6%B5%81%E7%A8%8B%E7%BB%93%E6%9E%9C/">CRF的整体流程结果</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/09/25/python%20work/nlp-crf%E6%A8%A1%E5%9E%8B/">nlp_crf模型</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/09/25/python%20work/%E6%95%B0%E5%AD%A6%E5%BB%BA%E6%A8%A1%E9%97%AE%E9%A2%983/">数学建模问题3</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/09/25/python%20work/%E6%95%B0%E5%AD%A6%E5%BB%BA%E6%A8%A1%E9%97%AE%E9%A2%982/">数学建模问题2</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/09/25/python%20work/%E6%95%B0%E5%AD%A6%E5%BB%BA%E6%A8%A1%E9%97%AE%E9%A2%981/">数学建模问题1</a>
                </span>
            </li>
            
        </ul>
    </div>
</aside>
    
    
    <aside id="sidebar-rand_posts">
    <div class="panel panel-gal recent hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <div class="panel-heading">
            <i class="fa fa-refresh"></i>
            随机文章
            <i class="fa fa-times-circle panel-remove"></i>
            <i class="fa fa-chevron-circle-up panel-toggle"></i>
        </div>
        <ul class="list-group list-group-flush">
            
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/07/08/python%20work/HMM%E4%B8%AD%E7%9A%84B%E5%80%BC%E7%A1%AE%E5%AE%9A/">HMM中的B值确定</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/07/23/python%20work/gui%E7%95%8C%E9%9D%A2%E6%9A%82%E5%AE%9A%E7%89%88%E5%92%8C%E9%81%87%E5%88%B0%E7%9A%84%E9%97%AE%E9%A2%98/">gui界面暂定版和遇到的问题</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/03/26/python%20work/python-%E5%8F%AF%E8%A7%86%E5%8C%96%E4%B9%8Bseaborn/">python_可视化之seaborn</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2019/12/01/python%20work/python%E5%9F%BA%E7%A1%80%E4%B9%8B%E8%AF%BB%E5%8F%96mat%E6%96%87%E4%BB%B6/">LV.0</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/02/09/python%20work/python%E6%A8%A1%E5%9D%97%E7%9A%84%E6%9E%84%E5%BB%BA%E5%92%8C%E8%B0%83%E7%94%A8/">python模块的构建和调用</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/08/31/python%20work/%E5%88%86%E7%B1%BB%E6%A8%A1%E5%9E%8B%E5%9F%BA%E4%BA%8E%E4%BA%A4%E5%8F%89%E9%AA%8C%E8%AF%81%E8%BF%9B%E8%A1%8C%E8%AF%84%E4%BC%B0/">分类模型基于交叉验证进行评估</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/08/08/python%20work/%E5%B0%86python%E8%BD%AC%E6%8D%A2%E4%B8%BAexe/">将python转换为exe</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/09/07/python%20work/%E6%95%B0%E6%8D%AE%E9%9B%86%E4%BB%8B%E7%BB%8D/">数据集介绍</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/06/24/python%20work/%E7%BB%98%E5%88%B6%E7%89%B9%E5%BE%81%E9%87%8D%E8%A6%81%E5%BA%A6%E7%AD%9B%E9%80%89%E7%BB%93%E6%9E%9C/">绘制特征重要度筛选结果</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2020/08/20/python%20work/%E9%87%8D%E6%96%B0%E6%9E%84%E5%BB%BAslpdb%E4%B8%AD%E7%9A%84%E7%89%B9%E5%BE%81%E5%92%8C%E6%A0%87%E7%AD%BE/">重新构建slpdb中的特征和标签</a>
                </span>
            </li>
            
        </ul>
    </div>
</aside>
    
    
    <aside id="gal-sets">
        <div class="panel panel-gal hidden-xs" data-aos="fade-up" data-aos-duration="2000">
            <ul class="nav nav-pills pills-gal">

                
                <li>
                    <a href="/2020/02/08/python%20work/python%E2%80%94%E2%80%94%E6%BB%91%E5%8A%A8%E5%88%87%E7%89%87%E4%B9%8B%E6%95%B0%E7%BB%84/index.html#sidebar-tags" data-toggle="tab" id="tags-tab">热门标签</a>
                </li>
                
                
                <li>
                    <a href="/2020/02/08/python%20work/python%E2%80%94%E2%80%94%E6%BB%91%E5%8A%A8%E5%88%87%E7%89%87%E4%B9%8B%E6%95%B0%E7%BB%84/index.html#sidebar-friend-links" data-toggle="tab" id="friend-links-tab">友情链接</a>
                </li>
                
                
                <li>
                    <a href="/2020/02/08/python%20work/python%E2%80%94%E2%80%94%E6%BB%91%E5%8A%A8%E5%88%87%E7%89%87%E4%B9%8B%E6%95%B0%E7%BB%84/index.html#sidebar-links" data-toggle="tab" id="links-tab">个人链接</a>
                </li>
                
            </ul>
            <div class="tab-content">
                
                <div class="cloud-tags tab-pane nav bs-sidenav fade" id="sidebar-tags">
    
    <a href="/tags/py-study/" style="font-size: 14.15957303176243px;" class="tag-cloud-link">py_study</a>
    
    <a href="/tags/nlp/" style="font-size: 18.700222864476974px;" class="tag-cloud-link">nlp</a>
    
    <a href="/tags/Graduation-work/" style="font-size: 8.761975478686551px;" class="tag-cloud-link">Graduation work</a>
    
    <a href="/tags/work/" style="font-size: 11.857053255475005px;" class="tag-cloud-link">work</a>
    
    <a href="/tags/hexo/" style="font-size: 19.786417090168733px;" class="tag-cloud-link">hexo</a>
    
    <a href="/tags/%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/" style="font-size: 13.170490425765399px;" class="tag-cloud-link">-个人博客搭建</a>
    
    <a href="/tags/malab-%E6%AF%95%E4%B8%9A/" style="font-size: 15.944616177589069px;" class="tag-cloud-link">-malab -毕业</a>
    
    <a href="/tags/python-%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD/" style="font-size: 17.970602144604218px;" class="tag-cloud-link">-python -人工智能</a>
    
    <a href="/tags/python/" style="font-size: 11.800092470919607px;" class="tag-cloud-link">python</a>
    
    <a href="/tags/python/" style="font-size: 15.887324112838673px;" class="tag-cloud-link">-python</a>
    
    <a href="/tags/mathematical-modeling/" style="font-size: 12.583250898373906px;" class="tag-cloud-link">mathematical modeling</a>
    
    <a href="/tags/statistical-learning/" style="font-size: 9.591167795218642px;" class="tag-cloud-link">statistical learning</a>
    
</div>
                
                
                <div class="friend-links tab-pane nav bs-sidenav fade" id="sidebar-friend-links">
    
    <li>
        <a href="http://kdays.net/days/" target="_blank">KDays Forum</a>
    </li>
    
    <li>
        <a href="http://www.gal123.com/" target="_blank">绅士导航♂</a>
    </li>
    
    <li>
        <a href="http://www.moe123.com/" target="_blank">萌导航</a>
    </li>
    
</div>
                
                
                <div class="links tab-pane nav bs-sidenav fade" id="sidebar-links">
    
    <li>
        <a href="https://github.com/ZEROKISEKI/" target="_blank">Github</a>
    </li>
    
    <li>
        <a href="https://coding.net/u/SORA1" target="_blank">Coding</a>
    </li>
    
    <li>
        <a href="https://www.zhihu.com/people/aonosora/activities" target="_blank">知乎</a>
    </li>
    
</div>
                
            </div>
        </div>
    </aside>
    
</aside>
            </div>
        </div>
    </div>
    <footer id="gal-footer">
    <div class="container">
        Copyright © 2018 esy Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>.&nbsp;Theme by <a href="https://github.com/ZEROKISEKI" target="_blank">AONOSORA</a>
    </div>
</footer>

<!-- 回到顶端 -->
<div id="gal-gotop">
    <i class="fa fa-angle-up"></i>
</div>
</body>

<script src="/js/activate-power-mode.js"></script>

<script>

    // 配置highslide
	hs.graphicsDir = '/js/highslide/graphics/'
    hs.outlineType = "rounded-white";
    hs.dimmingOpacity = 0.8;
    hs.outlineWhileAnimating = true;
    hs.showCredits = false;
    hs.captionEval = "this.thumb.alt";
    hs.numberPosition = "caption";
    hs.align = "center";
    hs.transitions = ["expand", "crossfade"];
    hs.lang.number = '共%2张图, 当前是第%1张';
    hs.addSlideshow({
      interval: 5000,
      repeat: true,
      useControls: true,
      fixedControls: "fit",
      overlayOptions: {
        opacity: 0.75,
        position: "bottom center",
        hideOnMouseOut: true
      }
    })

    // 初始化aos
    AOS.init({
      duration: 1000,
      delay: 0,
      easing: 'ease-out-back'
    });

</script>
<script>
	POWERMODE.colorful = 'true';    // make power mode colorful
	POWERMODE.shake = 'true';       // turn off shake
	// TODO 这里根据具体情况修改
	document.body.addEventListener('input', POWERMODE);
</script>
<script>
    window.slideConfig = {
      prefix: '/imgs/slide/background',
      ext: 'jpg',
      maxCount: '6'
    }
</script>

<script src="/js/hs.js"></script>
<script src="/js/blog.js"></script>



<script src="/js/oni.js"></script>




</html>